package exceptionProj.exception1;

public class Test {

    public void test() throws HotelAgeException{
        throw new HotelAgeException();
    }
    public static void main(String[] args) {
        Test test1=new Test();
        try {
            test1.test();
        } catch (HotelAgeException e) {
            e.printStackTrace();
        }
    }
}
